package com.hzqy.persistence.dao.activity;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.activity.PersonalizedActivityVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class PersonalizedActivityDao extends PersistenceDao<PersonalizedActivityVo, Integer> {

    public int insertPersonalizedActivityVo(PersonalizedActivityVo vo) {
        return getSqlSession().insert(this.getNamespace() +"insertPersonalizedActivityVo", vo);
    }
    public int updatePersonalizedActivityVo(PersonalizedActivityVo vo) {
        return getSqlSession().update(this.getNamespace() +"updatePersonalizedActivityVo", vo);
    }

    public List<PersonalizedActivityVo> selectPersonalizedActivityVo(PersonalizedActivityVo vo) {
        List<PersonalizedActivityVo> voList = getSqlSession().selectList(this.getNamespace() + "selectPersonalizedActivityVo",vo);
        return voList;
    }

    public List<PersonalizedActivityVo> selectPersonalizedActivityStats(PersonalizedActivityVo vo) {
        List<PersonalizedActivityVo> voList = getSqlSession().selectList(this.getNamespace() + "selectPersonalizedActivityStats",vo);
        return voList;
    }

}
